import os

class FileUtils(object):

    @classmethod
    def isFileExsists(cls,path):
        return os.path.exists(path)

    @classmethod
    def createFolder(cls,path):
        os.mkdir(path)

    @classmethod
    def removeFolder(cls,path):
        os.rmdir(path)

if __name__ == '__main__':
    print(os.getcwd()) # E:\learn_language\python\Python语法\FileDemo
    os.chdir('d:/aaa') # 修改当前目录到
    print(os.getcwd())

    # print(os.curdir) # 返回当前目录，其实是.

    # print(os.pardir) # 返回当前目录的父目录，其实是..

    # 在 d:/aaa 中创建ccc文件夹
    # os.mkdir(os.curdir+'/'+'ccc')

    # for i in range(10):
    #     os.mkdir(os.curdir+'/'+str(i))



    # lst = os.listdir(os.curdir)
    # for ls in lst:
    #     print(ls)


    print(os.path.curdir)